package cn.iocoder.yudao.module.trade.controller.admin.order.vo;

import cn.iocoder.yudao.framework.common.enums.trade.TradeOrderStatusEnum;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.common.validation.InEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 贵金属交易订单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class TradeOrderPageReqVO extends PageParam {

    @Schema(description = "订单类型", example = "1")
    private List<Integer> orderType;

    @Schema(description = "贵金属类型", example = "2")
    private Integer metalType;

    @Schema(description = "用户编号", example = "25184")
    private Long userId;

    @Schema(description = "用户 IP")
    private String userIp;

    @Schema(description = "用户备注", example = "随便")
    private String userRemark;

    @Schema(description = "订单状态", example = "2")
    private Integer status;

    @Schema(description = "商家备注", example = "你说的对")
    private String remark;

    @Schema(description = "支付订单编号", example = "18918")
    private Long payOrderId;

    @Schema(description = "支付状态", example = "2")
    private Integer payStatus;

    @Schema(description = "下单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] orderTime;

    @Schema(description = "结算时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] settleTime;

    @Schema(description = "结算方式")
    private Integer settleMethod;

    @Schema(description = "订单取消时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] cancelTime;


    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "订单状态", example = "1")
    @InEnum(value = TradeOrderStatusEnum.class, message = "订单状态必须是 {value}")

    private Integer statusStart;
    private Integer statusEnd;

}